# -*- coding : utf-8 -*-
# coding: utf-8
"""
应用程序Api的路由和资源绑定
"""

from flask import Blueprint
from flask_restful import Api
from Src.GJ_KnowGra_construction import GJ_KnowGra_construction

from Src.YJTJ_Process_Recommendations import YJTJ_Process_Recommendations




from Src.YH_optimization_of_parameters import YH_optimization_of_parameters
from Src.YH_spi_opt_params import YH_spi_opt_params
from Src.TJ_commissioning_process_recommendation import TJ_commissioning_process_recommendation
from Src.upload import FileUpload
from Src.data_update import rfPCBData
api_bp = Blueprint('api', __name__)
api = Api(api_bp)


api.add_resource(GJ_KnowGra_construction, '/construct/gj_knowgra_construction')
api.add_resource(YJTJ_Process_Recommendations, '/recommend/yjtj_process_recommendations')



api.add_resource(YH_optimization_of_parameters, '/reflow_YH/YH_optimization_of_parameters')
api.add_resource(YH_spi_opt_params, '/print_YH/YH_spi_opt_params')
api.add_resource(TJ_commissioning_process_recommendation, '/ts_TJ/TJ_commissioning_process_recommendation')
api.add_resource(FileUpload, '/upload')
api.add_resource(rfPCBData, '/reflow/updatedata')

